/*
 * @Description: 商品模块路由
 */
const express = require("express");
const router = express.Router();
const productController = require("../../service/productService");

router
  .post('/getAllProduct', productController.GetAllProduct)
  .post('/getPromoProduct', productController.GetPromoProduct)
  .post('/getHotProduct', productController.GetHotProduct)
  .post('/getProductByCategory', productController.GetProductByCategory)
  .post('/getCategory', productController.GetCategory)
  .post('/getProductBySearch', productController.GetProductBySearch)
  .post('/getDetails', productController.GetDetails)
  .post('/getDetailsPicture', productController.GetDetailsPicture)
  
module.exports = router;